export default{
	namespaced:true,
	state:{
		wxUser:JSON.parse(uni.getStorageSync('wxUserInfo')||'{}'),
		wxToken:uni.getStorageSync('wxToken')||''
	},
	mutations:{
		SET_WXUSERINFO(state,paylod){
			state.wxUser=paylod
			uni.setStorageSync('wxUserInfo',JSON.stringify(paylod))
		},
		SET_WXToken(state,payload){
			state.wxToken=payload
			uni.setStorageSync('wxToken',payload)
		}
	}
}